package com.company.cloud.app.modules.bus.service;

import com.alibaba.fastjson.JSONObject;
import com.company.cloud.common.bean.AnonyTokenModel;
import com.company.common.auth.service.AnonyTokenService;
import com.company.common.server.config.cloud.ProjectConfig;
import com.company.common.server.config.mq.constant.MQTopicKeys;
import com.company.common.server.config.mq.utils.SaasMqUtils;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Log4j2
@Service
public class AnonyTokenServiceImpl implements AnonyTokenService {

    @Autowired
    private ProjectConfig projectConfig;


    @Override
    public void addAnonyToken(AnonyTokenModel params) {
        SaasMqUtils.produce(MQTopicKeys.MQ_AnonyToken_Topic, JSONObject.toJSONString(params),false,projectConfig);
    }





}
